package cn.zhqr.db.model;

import cn.zhqr.db.model.base.BaseAdmin;
import com.jfinal.ext.plugin.tablebind.TableBind;

/**
* Created by charles on 2023-07-23 08:57:56
*/
@TableBind(tableName=Admin.table)
public class Admin extends BaseAdmin<Admin> {
    public static final Admin dao = new Admin();
    public static final String table = "admin";

    public Admin findByLoginNameAndPwd(String loginName, String password) {
        return findFirstWhere("binary login_name=? and binary `password`=?",loginName,password);
    }
}
